package com.wx.service.impl;

import com.wx.dao.SmbmsUserDao;
import com.wx.entry.SmbmsUser;
import com.wx.service.SmbmsUserService;
import com.wx.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class SmbmsUserServiceImpl implements SmbmsUserService {

    @Override
    public List<SmbmsUser> getSmbmsUserAll() {
        //service  ==》dao 数据
        SqlSession sqlSession =  MybatisUtils.getSqlSession();
        SmbmsUserDao smbmsUserDao=   sqlSession.getMapper(SmbmsUserDao.class);
        List<SmbmsUser>  smbmsUserList =   smbmsUserDao.getSmbmsUserAll();
        return smbmsUserList;
    }

}
